
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <body>
    
<div class="archive_info">
<h1>JavaScript <span class="color_h1"> 变量</span>
</h1>
<hr/>
<p class="intro">变量是用于存储信息的"容器"。</p>
<div class="example">
<h2 class="example_head">实例</h2>
<div class="example_code">
<div class="hl-main"><span class="hl-reserved">var</span><span class="hl-code"> </span><span class="hl-identifier">x</span><span class="hl-code">=</span><span class="hl-number">5</span><span class="hl-code">;
</span><span class="hl-reserved">var</span><span class="hl-code"> </span><span class="hl-identifier">y</span><span class="hl-code">=</span><span class="hl-number">6</span><span class="hl-code">;
</span><span class="hl-reserved">var</span><span class="hl-code"> </span><span class="hl-identifier">z</span><span class="hl-code">=</span><span class="hl-identifier">x</span><span class="hl-code">+</span><span class="hl-identifier">y</span><span class="hl-code">;</span></div>
</div>
<br/><a class="tryitbtn"  rel="noopener noreferrer" target="_blank">尝试一下 »</a>
</div>
<h3>就像代数那样</h3>
<p>x=5<br/>
y=6<br/>
z=x+y</p>
<p>在代数中，我们使用字母（比如 x）来保存值（比如 5）。</p>
<p>通过上面的表达式 z=x+y，我们能够计算出 z 的值为 11。</p>
<p>在 JavaScript 中，这些字母被称为变量。</p></div>

    </body>
    </html>
    